import service from '@/utils/request.js'; // 引入封装的 axios 实例

const noticeApi = {
  getFollowMeNoticeList: '/follow/me', //关注通知
  getChattedNoticeList:'/chat/getChatted', //聊天通知
  queryLoveAndCollectMe:'/love/loveAndCollectMe', //赞和收藏通知
  getNoticeCommentList: '/comment/noticeList' //评论回复通知
};

// 关注通知
export const getFollowMeNoticeList = () => {
  return service.get(noticeApi.getFollowMeNoticeList);
};

// 消息通知
export const getChattedNoticeList = (pageNo, pageSize) => {
  return service.get(noticeApi.getChattedNoticeList,{
    params: { pageNo, pageSize }
  });
};

export const queryLoveAndCollectMe = (pageNo, pageSize) => {
  return service.get(noticeApi.queryLoveAndCollectMe,{
    params: { pageNo, pageSize }
  });
};

export const getNoticeCommentList = (pageNo, pageSize) => {
  return service.get(noticeApi.getNoticeCommentList,{
    params: { pageNo, pageSize }
  });
};

